package cn.connectivity.plugin.gui.dialog;

import lombok.Getter;

import javax.swing.*;
import java.util.Objects;

@Getter
public class SettingsSelectDialog {
    private JPanel tablePanel;
    private JPanel selectJpanel;
    private JPanel dataPanel;
    private JPanel btnPanel;
    private JComboBox databaseComboBox;
    private JComboBox tableComboBox;
    private JTable dataTable;
    private JButton queryBtn;
    private JButton resetBtn;
    private JButton prePageBtn;
    private JButton nextPageBtn;
    private JTextField totalPagesText;
    private JTextField pageNoText;
    private JComboBox pageSizeComboBox;
    private JComboBox connectComboBox;

    private static SettingsSelectDialog INSTANCE;

    public static SettingsSelectDialog getInstance() {
        if(Objects.isNull(INSTANCE)) {
            INSTANCE = new SettingsSelectDialog();
        }
        return INSTANCE;
    }

}
